<?xml version="1.0" encoding="utf-8" ?>
<Emprunts xmlns:typing="urn:xmd-typing" xmlns:mapping="urn:xmd-mapping">
  <mapping:uses>Ouvrages.Map.xml</mapping:uses>
  <Bibliotheque>
	<typing:entity
	    type="Biblio.Emprunts.Bibliotheque, Biblio.Emprunts"/>
	<mapping:entity PrimaryKey="OID"
	    class="Lib.Object.Relational.TableFactory, Lib.Object"
	    update-command = "UPDATE Bibliotheque SET Nom = ? WHERE OID = ?"/>
	<Nom>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Nom>
	<ListeExemplairesAchetes>
	    <typing:reference
			type="Biblio.Emprunts.Exemplaire, Biblio.Emprunts"
			multiplicity="*"/>
	    <mapping:reference
			class="Lib.Object.Relational.IndirectListFactory, Lib.Object"
			adjacent-role="BibliAchat"
			incident-role="ListeExemplairesAchetes"
			table-name="BibliAch_ListeExe"/>
    </ListeExemplairesAchetes>
    <ListeExemplairesRendus>
		<typing:reference
			type="Biblio.Emprunts.Exemplaire, Biblio.Emprunts"
			multiplicity="*"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectListFactory, Lib.Object"
			adjacent-role="BibliLocalisation"
			incident-role="ListeExemplairesRendus"
			table-name="ListeExe_BibliLoc"/>
	</ListeExemplairesRendus>
  </Bibliotheque>
  <Adherent>
	<typing:entity
	    type="Biblio.Emprunts.Adherent, Biblio.Emprunts"/>
	<mapping:entity PrimaryKey="OID"
	    class="Lib.Object.Relational.TableFactory, Lib.Object"/>
	<Nom>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Nom>
	<Prenom>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Prenom>
	<Rue>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Rue>
	<Ville>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Ville>
	<Exclu>
		<typing:property type="System.Boolean"/>
		<mapping:property/>
	</Exclu>
	<NumeroAdherent>
		<typing:property type="System.Int32"/>
		<mapping:property/>
	</NumeroAdherent>
	<TarifReduit>
		<typing:property type="System.Boolean"/>
		<mapping:property/>
	</TarifReduit>
	<DateFinAdhesion>
		<typing:property type="System.DateTime"/>
		<mapping:property/>
	</DateFinAdhesion>
	<ListeExemplaire>
		<typing:reference
			type="Biblio.Emprunts.Exemplaire, Biblio.Emprunts"
			multiplicity="*"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectListFactory, Lib.Object"
			adjacent-role="AdherentReserveur"
			incident-role="ListeExemplaire"
			table-name="Adherent_ListeExe"/>
	</ListeExemplaire>
	<ListeEmprunt>
	    <typing:reference
			type="Biblio.Emprunts.Emprunt, Biblio.Emprunts"
			multiplicity="*"/>
	    <mapping:reference
			class="Lib.Object.Relational.IndirectListFactory, Lib.Object"
			adjacent-role="Adherent"
			incident-role="ListeEmprunt"
			table-name="ListeEmp_Adherent"/>
    </ListeEmprunt>
  </Adherent>
  <Exemplaire>
    <typing:entity
	    type="Biblio.Emprunts.Exemplaire, Biblio.Emprunts"/>
    <mapping:entity PrimaryKey="OID"
	    class="Lib.Object.Relational.TableFactory, Lib.Object"/>
	<Numero>
		<typing:property type="System.Int32"/>
		<mapping:property/>
	</Numero>
	<DateMaxReservation>
		<typing:property type="System.DateTime"/>
		<mapping:property/>
	</DateMaxReservation>
	<DateAchat>
		<typing:property type="System.DateTime"/>
		<mapping:property/>
	</DateAchat>
	<BibliLocalisation>
	    <typing:reference
	        type="Biblio.Emprunts.Bibliotheque, Biblio.Emprunts"
	        multiplicity="1"/>
	    <mapping:reference
	        class="Lib.Object.Relational.IndirectReferenceFactory, Lib.Object"
	        adjacent-role="ListeExemplairesRendus"
	        incident-role="BibliLocalisation"
	        table-name="ListeExe_BibliLoc"/>
    </BibliLocalisation>
	<BibliAchat>
		<typing:reference
			type="Biblio.Emprunts.Bibliotheque, Biblio.Emprunts"
			multiplicity="1"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectReferenceFactory, Lib.Object"
			adjacent-role="ListeExemplairesAchetes"
			incident-role="BibliAchat"
			table-name="BibliAch_ListeExe"/>
    </BibliAchat>
    <AdherentReserveur>
		<typing:reference
			type="Biblio.Emprunts.Adherent, Biblio.Emprunts"
			multiplicity="1"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectReferenceFactory, Lib.Object"
			adjacent-role="ListeExemplaire"
			incident-role="AdherentReserveur"
			table-name="Adherent_ListeExe"/>
    </AdherentReserveur>
    <Ouvrage>
		<typing:reference
			type="Biblio.Ouvrages.Ouvrage, Biblio.Ouvrages"
			multiplicity="1"/>
		<mapping:reference stored="true"
			class="Lib.Object.Relational.DirectReferenceFactory, Lib.Object"
			incident-role="Ouvrage"/>
    </Ouvrage>
    <EmpruntCourant>
		<typing:reference
			type="Biblio.Emprunts.Emprunt, Biblio.Emprunts"
			multiplicity="1"/>
		<mapping:reference stored="true"
			class="Lib.Object.Relational.DirectReferenceFactory, Lib.Object"
			incident-role="EmpruntCourant"/>
	</EmpruntCourant>
	<ListeEmpruntPasse>
		<typing:reference
			type="Biblio.Emprunts.Emprunt, Biblio.Emprunts"
			multiplicity="*"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectListFactory, Lib.Object"
			adjacent-role="ExemplaireEmprunte"
			incident-role="ListeEmpruntPasse"
			table-name="Exemplai_ListeEmp"/>
	</ListeEmpruntPasse>
  </Exemplaire>
  <Emprunt>
	<typing:entity
	    type="Biblio.Emprunts.Emprunt, Biblio.Emprunts"/>
	<mapping:entity PrimaryKey="OID"
	    class="Lib.Object.Relational.TableFactory, Lib.Object"/>
	<DateEmprunt>
		<typing:property type="System.DateTime"/>
		<mapping:property/>
	</DateEmprunt>
	<DateRestitution>
		<typing:property type="System.DateTime"/>
		<mapping:property/>
	</DateRestitution>
	<Restitue>
		<typing:property type="System.Boolean"/>
		<mapping:property/>
	</Restitue>
	<Adherent>
		<typing:reference
			type="Biblio.Emprunts.Adherent, Biblio.Emprunts"
			multiplicity="1"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectReferenceFactory, Lib.Object"
			adjacent-role="ListeEmprunt"
			incident-role="Adherent"
			table-name="ListeEmp_Adherent"/>
	</Adherent>
	<ExemplaireEmprunte>
		<typing:reference
			type="Biblio.Emprunts.Exemplaire, Biblio.Emprunts"
			multiplicity="1"/>
		<mapping:reference
			class="Lib.Object.Relational.IndirectReferenceFactory, Lib.Object"
			adjacent-role="ListeEmpruntPasse"
			incident-role="ExemplaireEmprunte"
			table-name="Exemplai_ListeEmp"/>
	</ExemplaireEmprunte>
	<Exemplaire>
		<typing:reference
			type="Biblio.Emprunts.Exemplaire, Biblio.Emprunts"
			multiplicity="1"/>
		<mapping:reference stored="true"
			class="Lib.Object.Relational.DirectReferenceFactory, Lib.Object"
			incident-role="Exemplaire"/>
	</Exemplaire>
  </Emprunt>
</Emprunts>